package com.onedec.message.entity;

import java.util.ArrayList;
import java.util.List;

public class OnedecFriendGroupEmpExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OnedecFriendGroupEmpExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFriendGroupEmpIdIsNull() {
            addCriterion("friend_group_emp_id is null");
            return (Criteria) this;
        }

        public Criteria andFriendGroupEmpIdIsNotNull() {
            addCriterion("friend_group_emp_id is not null");
            return (Criteria) this;
        }

        public Criteria andFriendGroupEmpIdEqualTo(Integer value) {
            addCriterion("friend_group_emp_id =", value, "friendGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupEmpIdNotEqualTo(Integer value) {
            addCriterion("friend_group_emp_id <>", value, "friendGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupEmpIdGreaterThan(Integer value) {
            addCriterion("friend_group_emp_id >", value, "friendGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupEmpIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("friend_group_emp_id >=", value, "friendGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupEmpIdLessThan(Integer value) {
            addCriterion("friend_group_emp_id <", value, "friendGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupEmpIdLessThanOrEqualTo(Integer value) {
            addCriterion("friend_group_emp_id <=", value, "friendGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupEmpIdIn(List<Integer> values) {
            addCriterion("friend_group_emp_id in", values, "friendGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupEmpIdNotIn(List<Integer> values) {
            addCriterion("friend_group_emp_id not in", values, "friendGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupEmpIdBetween(Integer value1, Integer value2) {
            addCriterion("friend_group_emp_id between", value1, value2, "friendGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupEmpIdNotBetween(Integer value1, Integer value2) {
            addCriterion("friend_group_emp_id not between", value1, value2, "friendGroupEmpId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupIdIsNull() {
            addCriterion("friend_group_id is null");
            return (Criteria) this;
        }

        public Criteria andFriendGroupIdIsNotNull() {
            addCriterion("friend_group_id is not null");
            return (Criteria) this;
        }

        public Criteria andFriendGroupIdEqualTo(Integer value) {
            addCriterion("friend_group_id =", value, "friendGroupId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupIdNotEqualTo(Integer value) {
            addCriterion("friend_group_id <>", value, "friendGroupId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupIdGreaterThan(Integer value) {
            addCriterion("friend_group_id >", value, "friendGroupId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("friend_group_id >=", value, "friendGroupId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupIdLessThan(Integer value) {
            addCriterion("friend_group_id <", value, "friendGroupId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupIdLessThanOrEqualTo(Integer value) {
            addCriterion("friend_group_id <=", value, "friendGroupId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupIdIn(List<Integer> values) {
            addCriterion("friend_group_id in", values, "friendGroupId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupIdNotIn(List<Integer> values) {
            addCriterion("friend_group_id not in", values, "friendGroupId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupIdBetween(Integer value1, Integer value2) {
            addCriterion("friend_group_id between", value1, value2, "friendGroupId");
            return (Criteria) this;
        }

        public Criteria andFriendGroupIdNotBetween(Integer value1, Integer value2) {
            addCriterion("friend_group_id not between", value1, value2, "friendGroupId");
            return (Criteria) this;
        }

        public Criteria andFriendIdIsNull() {
            addCriterion("friend_id is null");
            return (Criteria) this;
        }

        public Criteria andFriendIdIsNotNull() {
            addCriterion("friend_id is not null");
            return (Criteria) this;
        }

        public Criteria andFriendIdEqualTo(Integer value) {
            addCriterion("friend_id =", value, "friendId");
            return (Criteria) this;
        }

        public Criteria andFriendIdNotEqualTo(Integer value) {
            addCriterion("friend_id <>", value, "friendId");
            return (Criteria) this;
        }

        public Criteria andFriendIdGreaterThan(Integer value) {
            addCriterion("friend_id >", value, "friendId");
            return (Criteria) this;
        }

        public Criteria andFriendIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("friend_id >=", value, "friendId");
            return (Criteria) this;
        }

        public Criteria andFriendIdLessThan(Integer value) {
            addCriterion("friend_id <", value, "friendId");
            return (Criteria) this;
        }

        public Criteria andFriendIdLessThanOrEqualTo(Integer value) {
            addCriterion("friend_id <=", value, "friendId");
            return (Criteria) this;
        }

        public Criteria andFriendIdIn(List<Integer> values) {
            addCriterion("friend_id in", values, "friendId");
            return (Criteria) this;
        }

        public Criteria andFriendIdNotIn(List<Integer> values) {
            addCriterion("friend_id not in", values, "friendId");
            return (Criteria) this;
        }

        public Criteria andFriendIdBetween(Integer value1, Integer value2) {
            addCriterion("friend_id between", value1, value2, "friendId");
            return (Criteria) this;
        }

        public Criteria andFriendIdNotBetween(Integer value1, Integer value2) {
            addCriterion("friend_id not between", value1, value2, "friendId");
            return (Criteria) this;
        }

        public Criteria andFriendBak1IsNull() {
            addCriterion("friend_bak1 is null");
            return (Criteria) this;
        }

        public Criteria andFriendBak1IsNotNull() {
            addCriterion("friend_bak1 is not null");
            return (Criteria) this;
        }

        public Criteria andFriendBak1EqualTo(String value) {
            addCriterion("friend_bak1 =", value, "friendBak1");
            return (Criteria) this;
        }

        public Criteria andFriendBak1NotEqualTo(String value) {
            addCriterion("friend_bak1 <>", value, "friendBak1");
            return (Criteria) this;
        }

        public Criteria andFriendBak1GreaterThan(String value) {
            addCriterion("friend_bak1 >", value, "friendBak1");
            return (Criteria) this;
        }

        public Criteria andFriendBak1GreaterThanOrEqualTo(String value) {
            addCriterion("friend_bak1 >=", value, "friendBak1");
            return (Criteria) this;
        }

        public Criteria andFriendBak1LessThan(String value) {
            addCriterion("friend_bak1 <", value, "friendBak1");
            return (Criteria) this;
        }

        public Criteria andFriendBak1LessThanOrEqualTo(String value) {
            addCriterion("friend_bak1 <=", value, "friendBak1");
            return (Criteria) this;
        }

        public Criteria andFriendBak1Like(String value) {
            addCriterion("friend_bak1 like", value, "friendBak1");
            return (Criteria) this;
        }

        public Criteria andFriendBak1NotLike(String value) {
            addCriterion("friend_bak1 not like", value, "friendBak1");
            return (Criteria) this;
        }

        public Criteria andFriendBak1In(List<String> values) {
            addCriterion("friend_bak1 in", values, "friendBak1");
            return (Criteria) this;
        }

        public Criteria andFriendBak1NotIn(List<String> values) {
            addCriterion("friend_bak1 not in", values, "friendBak1");
            return (Criteria) this;
        }

        public Criteria andFriendBak1Between(String value1, String value2) {
            addCriterion("friend_bak1 between", value1, value2, "friendBak1");
            return (Criteria) this;
        }

        public Criteria andFriendBak1NotBetween(String value1, String value2) {
            addCriterion("friend_bak1 not between", value1, value2, "friendBak1");
            return (Criteria) this;
        }

        public Criteria andFriendBak2IsNull() {
            addCriterion("friend_bak2 is null");
            return (Criteria) this;
        }

        public Criteria andFriendBak2IsNotNull() {
            addCriterion("friend_bak2 is not null");
            return (Criteria) this;
        }

        public Criteria andFriendBak2EqualTo(String value) {
            addCriterion("friend_bak2 =", value, "friendBak2");
            return (Criteria) this;
        }

        public Criteria andFriendBak2NotEqualTo(String value) {
            addCriterion("friend_bak2 <>", value, "friendBak2");
            return (Criteria) this;
        }

        public Criteria andFriendBak2GreaterThan(String value) {
            addCriterion("friend_bak2 >", value, "friendBak2");
            return (Criteria) this;
        }

        public Criteria andFriendBak2GreaterThanOrEqualTo(String value) {
            addCriterion("friend_bak2 >=", value, "friendBak2");
            return (Criteria) this;
        }

        public Criteria andFriendBak2LessThan(String value) {
            addCriterion("friend_bak2 <", value, "friendBak2");
            return (Criteria) this;
        }

        public Criteria andFriendBak2LessThanOrEqualTo(String value) {
            addCriterion("friend_bak2 <=", value, "friendBak2");
            return (Criteria) this;
        }

        public Criteria andFriendBak2Like(String value) {
            addCriterion("friend_bak2 like", value, "friendBak2");
            return (Criteria) this;
        }

        public Criteria andFriendBak2NotLike(String value) {
            addCriterion("friend_bak2 not like", value, "friendBak2");
            return (Criteria) this;
        }

        public Criteria andFriendBak2In(List<String> values) {
            addCriterion("friend_bak2 in", values, "friendBak2");
            return (Criteria) this;
        }

        public Criteria andFriendBak2NotIn(List<String> values) {
            addCriterion("friend_bak2 not in", values, "friendBak2");
            return (Criteria) this;
        }

        public Criteria andFriendBak2Between(String value1, String value2) {
            addCriterion("friend_bak2 between", value1, value2, "friendBak2");
            return (Criteria) this;
        }

        public Criteria andFriendBak2NotBetween(String value1, String value2) {
            addCriterion("friend_bak2 not between", value1, value2, "friendBak2");
            return (Criteria) this;
        }

        public Criteria andFriendBak3IsNull() {
            addCriterion("friend_bak3 is null");
            return (Criteria) this;
        }

        public Criteria andFriendBak3IsNotNull() {
            addCriterion("friend_bak3 is not null");
            return (Criteria) this;
        }

        public Criteria andFriendBak3EqualTo(String value) {
            addCriterion("friend_bak3 =", value, "friendBak3");
            return (Criteria) this;
        }

        public Criteria andFriendBak3NotEqualTo(String value) {
            addCriterion("friend_bak3 <>", value, "friendBak3");
            return (Criteria) this;
        }

        public Criteria andFriendBak3GreaterThan(String value) {
            addCriterion("friend_bak3 >", value, "friendBak3");
            return (Criteria) this;
        }

        public Criteria andFriendBak3GreaterThanOrEqualTo(String value) {
            addCriterion("friend_bak3 >=", value, "friendBak3");
            return (Criteria) this;
        }

        public Criteria andFriendBak3LessThan(String value) {
            addCriterion("friend_bak3 <", value, "friendBak3");
            return (Criteria) this;
        }

        public Criteria andFriendBak3LessThanOrEqualTo(String value) {
            addCriterion("friend_bak3 <=", value, "friendBak3");
            return (Criteria) this;
        }

        public Criteria andFriendBak3Like(String value) {
            addCriterion("friend_bak3 like", value, "friendBak3");
            return (Criteria) this;
        }

        public Criteria andFriendBak3NotLike(String value) {
            addCriterion("friend_bak3 not like", value, "friendBak3");
            return (Criteria) this;
        }

        public Criteria andFriendBak3In(List<String> values) {
            addCriterion("friend_bak3 in", values, "friendBak3");
            return (Criteria) this;
        }

        public Criteria andFriendBak3NotIn(List<String> values) {
            addCriterion("friend_bak3 not in", values, "friendBak3");
            return (Criteria) this;
        }

        public Criteria andFriendBak3Between(String value1, String value2) {
            addCriterion("friend_bak3 between", value1, value2, "friendBak3");
            return (Criteria) this;
        }

        public Criteria andFriendBak3NotBetween(String value1, String value2) {
            addCriterion("friend_bak3 not between", value1, value2, "friendBak3");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}